﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RegisterApp.Domain.Entities
{
    public class Player
    {
        [Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int PlayerId { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime BirstDate { get; set; }


        public virtual ICollection<Comment> Comments { get; set; }
        public  virtual ICollection<Team> Teams { get; set; } 
        [Required]
        public List<Match> Matches { get; set; }

        [Required]
        public Account Account { get; set; }
    }
}